package com.aaa.controller;

import com.aaa.dao.BranchMapper;
import com.aaa.service.BranchService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: keyboard
 * @description:
 * @author: 闫克起2
 * @create: 2024-03-16 15:19
 **/
@RestController
@RequestMapping("/branch")
public class BranchController {

    @Autowired
    private BranchService branchService;
    //aaaaaa

    @GetMapping("/list")
    public Result list(){
        return branchService.findAll();
    }
}
